package org.ghost.wechat.platform.dto.wechat.message;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author 01
 */
@XmlRootElement(name = "xml")
public class VoiceMsgXmlDTO extends CommonMsgXmlDTO {
    private static final long serialVersionUID = 716526187204505707L;

    /**
     * 语音消息媒体id，可以调用获取临时素材接口拉取数据
     */
    @XmlElement(name = "MediaId")
    private String mediaId;
    /**
     * 语音格式，如amr，speex等
     */
    @XmlElement(name = "Format")
    private String format;
    /**
     * 开通语音识别后,语音识别结果，UTF8编码
     */
    @XmlElement(name = "Recognition")
    private String recognition;

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getRecognition() {
        return recognition;
    }

    public void setRecognition(String recognition) {
        this.recognition = recognition;
    }

    @Override
    public String toString() {
        return "VoiceMsgXmlDTO{" +
                "mediaId='" + mediaId + '\'' +
                ", format='" + format + '\'' +
                ", recognition='" + recognition + '\'' +
                ", msgId='" + msgId + '\'' +
                ", toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime=" + createTime +
                ", msgType='" + msgType + '\'' +
                '}';
    }
}
